{include file="public/meat" title="网站配置字段列表"/}
<div class="cx-fex-c">
    <div class="x11 pad-t15 pad-b10">
        <div class="cx-fex-c">
            <div class="xs6 xl12">
                {include file="config/head" /}
            </div>
            <div class="xs6 xl12">
                <form class="layui-form" role="form" action="so" method="post">
                    <div class="cx-fex-r">
                        <label class="lab">搜索字段</label>
                        <input class="ipt" name="keyword" placeholder="请输入搜索内容" type="text" style="width: 200px;">
                        <button class="button f-l" type="submit"><i class="cx-icon cx-icon-sousuo"></i></button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <div class="x11">
        <form class="layui-form" role="form" action="" method="post">
            <table class="cx-teble cx-teble-bor-w cx-teble-bor cx-table-striped cx-table-hover cx-table-responsive-w">
                <thead>
                <tr>
                    <th class="t-c" width="120">配置名称</th>
                    <th width="120">配置键名</th>
                    <th>值</th>
                    <th width="120" class="t-c">配置类型</th>
                    <th width="80" class="t-c">附件类型</th>
                    {if $btn.edit}
                    <th width="80" class="t-c">排序值</th>
                    {/if}
                    {if $btn.edit || $btn.del}
                    <th class="t-c" width="120">编辑</th>
                    {/if}
                </tr>
                </thead>
                <tbody>
                {volist name="list" id="cx"}
                <tr>
                    <td class="t-c">{$cx.conf_title}</td>
                    <td>{$cx.conf}</td>
                    <td>{$cx.conf_value}</td>
                    <td class="t-c">{$cx.conf_typezh}</td>
                    <td class="t-c">{$cx.conf_typelxzh}</td>
                    {if $btn.edit}
                    <td class="t-c">
                        <input class="ipt ipt-S t-c" type="text" name="{$cx.conf}" value="{$cx.sort}">
                    </td>
                    {/if}
                    {if $btn.edit || $btn.del}
                    <td class="t-c">
                        {if $btn.edit}
                        <a class="button button-S bg-green" href="{:url('edit',array('conf'=>$cx['conf']))}">编辑</a>
                        {/if}
                        {if $btn.del}
                        {neq name="$cx.nodel" value="1"}
                        <a class="button button-S bg-red cx-click" data-id="{$cx['conf']}" data-href="{:url('del')}" data-type="deldata">删除</a>
                        {/neq}
                        {/if}
                    </td>
                    {/if}
                </tr>
                {/volist}
                </tbody>
            </table>
            <div class="t-c pad-t20">
                {if $btn.edit} <button id="form-submit" type="submit" class="button bg-blue">更改排序</button>{/if}
            </div>
            <div class="t-c pad-t20">
                {$list->render()}
            </div>
        </form>
    </div>
</div>
<div style="height: 20px; overflow: hidden"></div>
{include file="public/js" /}
<script>
    layui.config({
        base: '__ADMIN__/js/'
    }).use('app');
</script>
{include file="public/footer" /}